<div class="dawn-header">
    <div class="dawn-breadcrumb">
        <span class="layui-breadcrumb">
            <a href="javascript:;">系统管理</a>
            <a><cite>菜单管理</cite></a>
        </span>
    </div>
</div>
<div class="dawn-content">
    <div class="layui-row layui-form layui-form-pane">
        <div class="layui-inline">
            <label class="layui-form-label">菜单名称</label>
            <div class="layui-inline">
                <input class="layui-input" autocomplete="off" id="menuName"
                       placeholder="请输入菜单名称" autocomplete="off">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">层级</label>
            <div class="layui-inline">
                <input class="layui-input" autocomplete="off" id="level"
                       placeholder="请输入层级" autocomplete="off">
            </div>
        </div>
        <div class="layui-inline dawn-search-left">
            <button class="layui-btn" id="search"><i class="fa fa-search"></i> 搜索</button>
            <button class="layui-btn" id="reset"><i class="fa fa-trash"></i> 重置</button>
        </div>
    </div>
    <div class="layui-row dawn-table">
        <!-- 表格  -->
        <table id="menuTable" lay-filter="menuTable">
        </table>
    </div>
</div>
<!-- 工具条 -->
<script type="text/html" id="menuTableToolBar">
    <div class="layui-table-tool-temp">
        <div class="layui-btn-container">
            <button class="layui-btn layui-btn-sm" lay-event="add">添加
            </button>
        </div>
    </div>
    <div class="layui-table-tool-self">
        <div class="layui-inline" lay-event="LAYTABLE_FLUSH"><i class="layui-icon layui-icon-refresh"></i>
        </div>
    </div>
</script>
<!-- 表格内按钮 -->
<script type="text/html" id="menuTableTool">
    <a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delete">删除</a>
</script>
<script id="info" type="text/html">
    <div class="layui-form layui-form-pane dawn-form" lay-filter="info" style="margin: 10px !important;">
        <input type="hidden"  name="id">
        <div class="layui-form-item">
            <label class="layui-form-label dawn-form-label">菜单名称</label>
            <div class="layui-input-block">
                <input name="name" lay-verify="required" autocomplete="off"
                       placeholder="请输入菜单名称" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label dawn-form-label">菜单编号</label>
            <div class="layui-input-block">
                <input name="code" lay-verify="required" autocomplete="off"
                       placeholder="请输入菜单编号" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label dawn-form-label">父级编号</label>
            <div class="layui-input-block">
                <input id="pcodeName" lay-verify="required" autocomplete="off"
                       placeholder="请输入父级编号" class="layui-input" readonly
                       type="text">
                <input type="hidden" name="pcode">
                <div id="pcodeTreeDiv" class="dawn-form-ztree">
                    <ul id="pcodeTree" class="ztree tree-box"></ul>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label dawn-form-label">是否是菜单</label>
            <div class="layui-input-block">
                <select name="ismenu" lay-verify="required">
                    <option value="">请选择</option>
                    <option value="1">是</option>
                    <option value="0">不是</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label dawn-form-label">请求地址</label>
            <div class="layui-input-block">
                <input name="url" lay-verify="required" autocomplete="off"
                       placeholder="请输入请求地址(网页不需要写后缀.html)" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label dawn-form-label">菜单排序</label>
            <div class="layui-input-block">
                <input name="num" lay-verify="required" autocomplete="off"
                       placeholder="请输入菜单排序" class="layui-input"
                       type="number">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单图标</label>
            <div class="layui-input-block">
                <input name="icon" autocomplete="off"
                       placeholder="请输入菜单图标" class="layui-input"
                       type="text">
            </div>
        </div>
        <div class="layui-form-item" style="text-align: right;">
            <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="save">保存</button>
        </div>
    </div>
</script>

<script src="${ctxPath}/modular/system/menu/menu.js?v=${app.version}"></script>